import router from './router'
import { RouteRecordRaw } from 'vue-router'
router.beforeEach((to, from, next) => {
    /* 路由发生变化修改页面title */
    if (to.meta.title) {
        document.title = to.meta.title as string
    }
    next()
})